package com.leran.redis.lock;

import com.leran.redis.lock.annotation.RedisLock;
import org.springframework.stereotype.Service;

@Service("taobaoSMS")
public class TaobaoSMS {


    /**
     * 统计消息数
     *
     * @return
     */
    @RedisLock(key = "123", dbNum = 1, desc = "测试锁")
    public String test(Content content) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
